<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>本地网页</title>
		<style type="text/css">
			html,body{padding: 0px; margin: 0px;}
			.wrap{margin-top: 93px; color: #666666; font-size: 14px; }
			.wrap img{width: 180px; height: 132px;}
			
			.btn{height: 47px; line-height: 47px; width: 118px; background: #FFCA0A; border-radius: 6px;
			text-align: center; color: #303030; font-size: 18px; margin-top: 35px;font-weight: bold;}
			
			.arraw_left{width: 10px;height: 10px; display: inline-block;
				border-top: 2px solid #303030;border-right: 2px solid #303030;transform: rotate(225deg);margin-bottom: 4px;}
			
			.title_wrap{height: 44px; padding: 0px 20px; background: #FFCA0A; color: #303030; font-size: 18px;
				display: flex;flex-direction: row;justify-content: space-between;align-items: center; font-weight: bold;}
				
			.col_center{display: flex;flex-direction: column;align-items: center;justify-content: center;}
		</style>
	</head>
	<body>
		<!-- <div class="title_wrap">
			<span class="arraw_left"></span>
			<span>错误</span>
			<span></span>
		</div> -->
		<div class="col_center wrap">
			<img src="net_error_icon.png"  />
			<span>网络请求失败～</span>
			
			<div class="btn">重新加载</div>
		</div>
		<!-- uni 的 SDK -->
		<!-- <script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.1.js"></script> -->
		<script type="text/javascript" src="uni.webview.1.5.1.js"></script>
		<script type="text/javascript">
			document.addEventListener('UniAppJSBridgeReady', function() {
				document.querySelector('.btn').addEventListener('click', function(evt) {
					console.log("99900");
					uni.navigateBack();
				});
				
			});
			
			// document.querySelector('.arraw_left').addEventListener('click', function(evt) {
			// 	console.log("arraw_left");
			// 	uni.navigateBack();
			// });
			
			
			// 获取错误信息
			document.addEventListener("error",function(e){  
			    var url = e.url;  // 错误页面的url地址  
			    var href = e.href; // 错误页面的完整路径（包括完整的协议头） 
				 console.log(url);
				 console.log(href);
			},false);
			
		</script>
	</body>
</html>
